<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link type="text/css" rel="stylesheet" href="../Public/css/basic.css" />
<link type="text/css" rel="stylesheet" href="../Public/css/manage.css" />
<script type="text/javascript" src="__ROOT__/Public/Jquery/jquery.js"></script>
<script type="text/javascript" src="../Public/js/infoNav.js"></script>
<title></title>
</head>
<body id="main">
    <h2>信息导航设置 -- 添加导航<?php if(empty($_GET['pid'])): ?><a href="__URL__"><span class="add">→</span>返回导航列表</a><?php else: ?><a href="__URL__/index/pid/<?php echo ($_GET['pid']); ?>"><span class="add">→</span>返回子导航列表</a><?php endif; ?></h2>
    <div id="list">
    <form method="post" class="add">
        <dl>
            <?php if(!empty($_GET['pid'])): ?><dd>父类导航：<span style="font-weight:bold;">[<?php echo ($pinfonav); ?>]</span></dd><?php endif; ?>
            <dd>导航名称：<input type="text" name="name" class="text"/>　<span class="require">*</span> <span class="name info">导航名称必须是2~20位</span><span class="name success">可用</span><span class="name error"></span></dd>
            <?php if(empty($_GET['pid'])): ?><dd>关联属性：
                <?php if(is_array($attr)): $i = 0; $__LIST__ = $attr;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$value): $mod = ($i % 2 );++$i;?><input type="checkbox" name="attr[]" value="<?php echo ($value["id"]); ?>"/><?php echo ($value["name"]); endforeach; endif; else: echo "" ;endif; ?>
            </dd><?php endif; ?>
            <dd class="t"><span class="middle">导航描述：</span><textarea name="info"></textarea> <span class="nav_info info">导航描述255位以内</span><span class="nav_info success">可用</span><span class="nav_info error"></span> </dd>
            <dd>是否激活：<input type="radio" name="is_active" value="1" checked="checked"/>是 <input type="radio" name="is_active" value="0"/>否</dd>
            <input type="hidden" id="flag" value="true" />
            <dd><input type="submit" name="send" value="提交"/> <input type="button" value="返回" onclick="history.back();"/></dd>
        </dl>
    </form>
    </div>
</body>
</html>